<template>
  <div v-loading="loading">
    <el-container>
      <el-aside width="200px">
        <commonMenu />
      </el-aside>
      <el-container>
        <el-header>
          <commonHeader />
        </el-header>
        <el-main>
          <router-view/>
        </el-main>
        <el-footer>
          <commonFooter />
        </el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import { mapGetters } from 'vuex';
import CommonHeader from "./commonHeader";
import CommonMenu from "./commonMenu";
import CommonFooter from "./commonFooter";

export default {
  name: 'App',
  components: { CommonHeader, CommonMenu, CommonFooter },
  computed: {
    ...mapGetters({
        loading: 'loading'
    })
  },
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
html, body{
  margin: 0;
  padding: 0;
}
.el-aside {
  background-color: #545c64;
}
.fr{
  float: right;
}
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden
}
.clearfix {
    *zoom:1
}
.pt10{
  padding-top: 10px;
}
.pt15{
  padding-top: 15px;
}
.edit-from .el-form-item__content{
  margin-right: 80px;
}
.el-dialog__footer .edit-footer{
  text-align: center
}
</style>
